9.4 Serial tuples
Evaluation of a serial tuple occurs in a new scope. Before evaluation, definitions are bound and the value item is then bound to names contributed by the definitions (or to non-local names). The result of evaluating a serial tuple is the result of evaluating the value item. During evaluation, contributing definitions are memoized upon reference. The idea of serial tuples is similar to that found in several programming languages, sometimes known as a “serial clause”. The scope of definitions is confined to the tuple.

For example,
Figure 9.12 shows the bindings for a serial tuple with both local and non-local bindings. Note in particular the two instances of variable a, one referenced from the value item and one referenced from a non-local function definition.
9.4.1 Fibonacci sequence
To illustrate a more complex use of a serial tuple, two techniques
to find the nth number in the
The first technique does not make use of a serial tuple but has a significant performance problem resulting from duplicate recursion. The piecewise function

The second technique to improves the performance by using a serial tuple with a definition that captures the last two numbers of the sequence in a tuple and references that tuple to compute the next number. The piecewise function








